package com.appinfo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.appinfo.dao.AppVersionDao;
import com.appinfo.entity.AppVersion;

@Service
public class AppVersionService {

	
	@Autowired
	AppVersionDao appVersionDao;
	

	public List<AppVersion> selectAppVersionByAppId(Long appId){
		return appVersionDao.selectAppVersionByAppId(appId);
	}
	
	public boolean addAppVersion(AppVersion appVersion){
		return appVersionDao.addAppVersion(appVersion) > 0;
	}
}
